<template>
	<view>
		<view style="display: flex;justify-content: center;">
			<view style="position: relative;margin: 20rpx 0; ">
				<image src="/static/index/搜索@2x.png" style="width: 24rpx;height: 24rpx;position: absolute;top: 25rpx;left: 20rpx;" mode="aspectFit"></image>
				<input
					type="text"
					@input="onInput"
					v-model="inputValue"
					placeholder-style="font-size:24rpx;color:#9EA9B7;"
					placeholder="请输入社区名"
					style="padding-left: 64rpx; width: 630rpx;height: 72rpx;background-color: #F8F8F8;border-radius: 40rpx;"
				/>
			</view>
		</view>
		<view style="border-bottom: 2rpx solid #E9E9E9;"></view>
	</view>
</template>
<script>
import { Storage } from '@/static/libs/utils.js'
	export default {
		data() {
			return {
				inputValue:''
			};
		},
		onLoad() {
			this.SearchCommunity()
		},
		methods: {
			onInput:(e)=>{
				console.log(e.detail.value)
                this.inputValue = e.detail.value
			},
			//搜索社区
			// SearchCommunity(){
			// 	this.token = Storage.get('token')
			// 	this.longitude = Storage.get('longitude')
			// 	this.latitude = Storage.get('latitude')
			// 	this.$request.post("from=wxapp&c=entry&a=wxapp&do=index&m=lionfish_comshop",
			// 	{
			// 		controller:'index.load_gps_community',
			// 		token:this.token,
			// 		inputValue:inputValue,
			// 		pageNum:1,
			// 		longitude:this.longitude,
			// 		latitude:this.latitude
			// 	}).then(res=> {
			// 		console.log('社区列表',res)
			// 		this.communityList = res.data.list
			// 	})
			// }
		}
	}
</script>

<style lang="scss">

</style>
